package com.tssf.car_manage.mapper;

import com.tssf.car_manage.entity.RepairRecord;
import com.tssf.car_manage.entity.Vehicle;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.data.repository.query.Param;

import java.util.List;

@Mapper
public interface VehicleMapper {
    List<Vehicle> lists();
    List<Vehicle> Sealist(String license);
    void delVehicle(int vehicle_id);

    int addvehicle(Vehicle vehicle);
    Integer getMaxVehicleId();
    int update(Vehicle vehicle);

    Vehicle getById(int vehicle_id);
    // 新增分页查询方法
    List<Vehicle> listWithPage();
}